package com.bsoft.gol.editor.service;



import com.bsoft.gol.editor.editor.EditorCommonWidget;
import com.bsoft.gol.editor.editor.response.EditorCommonWidgetRes;
import com.bsoft.gol.editor.editor.response.EditorQuestionnaireTitleRes;

import java.util.List;

/**
 * 常用控件题目表
 */
public interface EditorCommonWidgetApi {

    /**
     * 创建控件
     * @param editorCommonWidget editorCommonWidget
     * @param titleName name
     * @return ids
     */
    EditorCommonWidgetRes add(EditorCommonWidget editorCommonWidget, String titleName);

    /**
     * 详情
     * @param widgetId id
     * @return detail
     */
    EditorQuestionnaireTitleRes detail(String widgetId);

    /**
     * 删除
     * @param widgetId id
     */
    void delete(String widgetId);

    /**
     * 列表
     * @param classId id
     * @return list
     */
    List<EditorCommonWidgetRes> list(String classId);
}